var user={
  username:'admin',
  password:'123456',
  isUsed:true
}
/*for (var key in user){
  console.log(key)
}*/
var users=[
  {
    username: 'admin',
    password: 'admin',
  },
  {
    username: 'test',
    password: 'test',
  }
]
/*console.log(user.username);
console.log(user)*/
/*数据过滤*/
var current= users.find(function (user) {
  return user.username == 'test';
})
//console.log(current);
var finds= users.filter(function (user) {
  return user.password== '123456';
})
//console.log(finds)
